import method from '@/api/method'
import { objToString } from '@/utils/helper'
/* export function customer_select_newest(params) {
    return method.post(`/invuser/org/customer/select_newest.do`, params)
}
export function info_desutils(params) {
    return method.get(`/invuser/org/customer/info_desutils.do${objToString(params)}`)
} 
// 统计区域
export function count_order_status(params) {
    return method.post(`qdsflsc/api/portal/order/v1/count_order_status.do`, params, { isXReqUserId: true })
}
*/


// 用户名片接口
export function query_user_data(params) {
    return method.post(`qdsmerchant/api/portal/merchant/user/v1/query_user_data.do`, params, {
        isXAuthToken: true
    })
}
// 统计区域
export function count_order_status(params) {
    return method.post(`qdsflsc/api/portal/order/v1/work_page_count.do`, params)
}

//平台公告
export function query_inventory(params) {
    return method.post(`qdsoperate/api/white/business_card/v1/query_inventory.do`, params)
}


//消息通知列表接口
export function get_message_total(params) {
    return method.get(`qdsmerchant/api/portal/merchant/message_record/v1/get_message_total.do${objToString(params)}`)
}

// 即将到期、已超期、我的待办、我分配的
export function task_list_code(params) {
    return method.post(`qdsflsc/api/portal/task/v1/task_list_code.do`, params)
}
// 即将到期、已超期、我的待办、我分配的下面列表复选框---任务已完成、任务未完成、激活任务接口
export function complete_task_service(params) {
    return method.post(`qdsflsc/api/portal/task/v1/complete_task_service.do`, params)
}


//我的账户--账户金额统计查询
export function get_account_money_statistical(params) {
    return method.get(`qdsmerchant/api/portal/account/account/v1/get_account_money_statistical.do`)
}

// 在办订单
export function get_product_model_by_status(params) {
    return method.post(`qdsflsc/api/portal/order/v1/get_product_model_by_status.do`, params)
}

//用户消息已读
export function read_msg(params) {
    return method.post(`qdsmerchant/api/portal/merchant/message_record/v1/read_msg.do`, params)
}